home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / ghostscript / src / gsccode.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  42 lines

  1. /* Copyright (C) 1993 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gsccode.h */
  20. /* Types for character codes in Ghostscript */
  21.  
  22. #ifndef gsccode_INCLUDED
  23. #  define gsccode_INCLUDED
  24.  
  25. /* Define a character code.  Normally this is just a single byte from a */
  26. /* string, but because of composite fonts, character codes must be 32 bits. */
  27. typedef ulong gs_char;
  28. #define gs_no_char ((gs_char)~0L)
  29.  
  30. /* Define a character glyph code, a.k.a. character name. */
  31. typedef uint gs_glyph;
  32. #define gs_no_glyph ((gs_glyph)~0)
  33.  
  34. /* Define a procedure for mapping a gs_glyph to its (string) name. */
  35. #define gs_proc_glyph_name(proc)\
  36.   const char *proc(P2(gs_glyph, uint *))
  37. /* The following typedef is needed because ansi2knr can't handle */
  38. /* gs_proc_glyph_name((*procname)) in a formal argument list. */
  39. typedef gs_proc_glyph_name((*gs_proc_glyph_name_t));
  40.  
  41. #endif                /* gsccode_INCLUDED */
  42.